package com.flea.hclv.model.dao;

import com.flea.hclv.model.entity.HTravelGroup;
import com.flea.hclv.model.entity.vo.VisitorGroupVo;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.session.RowBounds;

import java.util.List;

public interface HTravelGroupMapper {
    int deleteByPrimaryKey(String id);

    int insert(HTravelGroup record);

    int insertSelective(HTravelGroup record);

    HTravelGroup selectByPrimaryKey(String id);

    int updateByPrimaryKeySelective(HTravelGroup record) throws  Exception;

    int updateByPrimaryKey(HTravelGroup record);

	HTravelGroup selectByTimeTableIdAndOrgIdForUpdate(@Param("timeTableId")String timeTableId,@Param("serviceOrgId")String serviceOrgId);

	List<HTravelGroup> findByMyOrgGroupPaging(RowBounds rowBounds,@Param("orgId")String orgId, @Param("vvo")VisitorGroupVo vvo);

  List<HTravelGroup> selectByTimeTableId(@Param("timeTableId") String timeTableId);

    List<HTravelGroup> selectByDeptIdAndGroupName(@Param("deptUuid") String deptUuid,@Param("groupName")String groupName);

  HTravelGroup findByServiceOrgIdAndTimeTableId(@Param("serverOrgId") String serverOrgId, @Param("timeTableId") String timeTableId) throws Exception;

  List<HTravelGroup> findAllGroupPaging(RowBounds rowBounds, @Param("vvo")VisitorGroupVo vvo) throws Exception;

    List<HTravelGroup> findByBackStatus(@Param("vvo") VisitorGroupVo vvo, @Param("orgId") String orgId);
}